package br.com.news.modal;

import java.io.Serializable;

public class FonteBean implements Serializable {

	private static final long serialVersionUID = -4018192386953174366L;

	private long idFonte;
	private String descricao;
	
	public FonteBean() {
		super();
	}

	public FonteBean(long idFonte) {
		super();
		this.idFonte = idFonte;
	}

	public FonteBean(long idFonte, String descricao) {
		super();
		this.idFonte = idFonte;
		this.descricao = descricao;
	}

	public final long getIdFonte() {
		return idFonte;
	}

	public final void setIdFonte(long idFonte) {
		this.idFonte = idFonte;
	}

	public final String getDescricao() {
		return descricao;
	}

	public final void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (idFonte ^ (idFonte >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (!(obj instanceof FonteBean))
			return false;
		FonteBean other = (FonteBean) obj;
		if (idFonte != other.idFonte)
			return false;
		return true;
	}
}
